package com.stylefeng.guns.modular.apple_app_manage.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.stylefeng.guns.core.support.DateTime;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 应用表
 * </p>
 *
 * @author GodRui
 * @since 2020-06-20
 */
@TableName("application")
public class Application extends Model<Application> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "app_id", type = IdType.AUTO)
    private Integer appId;

    /**
     * app名称
     */
    @TableField("app_name")
    private String appName;

    /**
     *  app别名
     * */
    @TableField("app_alias")
    private String appAlias;

    /**
     * app 识别码
     */
    @TableField("app_code")
    private String appCode;
    /**
     * app 包路径
     */
    @TableField("app_package_path")
    private String appPackagePath;
    /**
     * app 平台
     */
    @TableField("app_platform")
    private Integer appPlatform;
    @TableField("app_url")
    private String appUrl;
    private String image;
    /**
     * app 版本
     */
    @TableField("app_version")
    private String appVersion;
    /**
     * app包大小
     */
    @TableField("package_size")
    private Float packageSize;
    /**
     * full_size_image
     */
    @TableField("fs_image")
    private String fsImage;

    @TableField("user_id")
    private Integer userId;

    @TableField("username")
    private String userName;

    @TableField("app_desc")
    private String appDesc;

    @TableField("bundle_id")
    private String bundleId;

    @TableField("create_time")
    private Date createTime;

    @TableField("status")
    private Integer status;

    @TableField("support_push")
    private Integer supportPush;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBundleId() {
        return bundleId;
    }

    public void setBundleId(String bundleId) {
        this.bundleId = bundleId;
    }

    public String getAppDesc() {
        return appDesc;
    }

    public void setAppDesc(String appDesc) {
        this.appDesc = appDesc;
    }

    public Integer getAppId() {
        return appId;
    }

    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public String getAppPackagePath() {
        return appPackagePath;
    }

    public void setAppPackagePath(String appPackagePath) {
        this.appPackagePath = appPackagePath;
    }

    public Integer getAppPlatform() {
        return appPlatform;
    }

    public void setAppPlatform(Integer appPlatform) {
        this.appPlatform = appPlatform;
    }

    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public Float getPackageSize() {
        return packageSize;
    }

    public String getAppAlias() {
        return appAlias;
    }

    public void setAppAlias(String appAlias) {
        this.appAlias = appAlias;
    }

    public void setPackageSize(Float packageSize) {
        this.packageSize = packageSize;
    }

    public String getFsImage() {
        return fsImage;
    }

    public void setFsImage(String fsImage) {
        this.fsImage = fsImage;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getSupportPush() {
        return supportPush;
    }

    public void setSupportPush(Integer supportPush) {
        this.supportPush = supportPush;
    }

    @Override
    protected Serializable pkVal() {
        return this.appId;
    }

    @Override
    public String toString() {
        return "Application{" +
        "appId=" + appId +
        ", appName=" + appName + ", appAlias=" + appAlias +
        ", appCode=" + appCode +
        ", appPackagePath=" + appPackagePath +
        ", appPlatform=" + appPlatform +
        ", appUrl=" + appUrl +
        ", image=" + image +
        ", appVersion=" + appVersion +
        ", packageSize=" + packageSize +
                ", fsImage=" + fsImage +
                ", supportPush=" + supportPush +
        "}";
    }
}
